gdk: When reffing the impl surface, ref it from the impl window
authorBenjamin Otte <otte@redhat.com>
Sun, 23 Jan 2011 20:39:00 +0000 (21:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 23 Jan 2011 20:41:01 +0000 (21:41 +0100)
This was causing surfaces to be created with the wrong size and that
caused broken clipping.

https://bugzilla.gnome.org/show_bug.cgi?id=640195

gdk/gdkwindow.c

index fe24ddcba43b6f95933424a953b71859090a337d..8820920cb6662ead1927e61eb226a96fa0878a78 100644 (file)
@@ -2677,7 +2677,7 @@ gdk_window_begin_implicit_paint (GdkWindow *window, GdkRectangle *rect)
 static cairo_surface_t *
 gdk_window_ref_impl_surface (GdkWindow *window)
 {
-  return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->ref_cairo_surface (window);
+  return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->ref_cairo_surface (gdk_window_get_impl_window (window));
 }
 
 static cairo_t *